<%-- 
    Document   : testStateless
    Created on : 6-jun-2014, 16:30:23
    Author     : Anneleen
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Stateless Bean page</title>
    </head>
    <body>
        <h1>Testing the stateless bean</h1>
        <form action="StatelessServlet" method="post">
        <input type="text" name="query"/>
        <input type="submit" value="Send to Stateless bean"/>
        </form>
        <br><br>
        <% if(request.getAttribute("statelessMessage") != null) { %>
        <div>
            <h3>The stateless bean replies: <%= request.getAttribute("statelessMessage")%></h3>  
        </div>
        <% } %>
    </body>
</html>
